package com.coldchain.admin.config.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.coldchain.common.enums.EnableStatusEnums;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author fangliai
 * @since 2018-11-06
 */
@TableName("ch_city_info")
public class CityInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("adecode")
    private String adecode;


    /**
     * 是否为热门城市
     */
    private Integer hot;

    public CityInfo() {
        super();
    }

    public CityInfo(String adecode, EnableStatusEnums enable) {
        this.adecode = adecode;
        this.enable = enable;
    }

    /**
     * 开放时间! 为空则代表没有限制
     */
    @TableField("openTime")
    private String openTime;

    @EnumValue
    @TableField("enable")
    private EnableStatusEnums enable;

    /**
     * 备注
     */
    private String remarks;

    private Date  createTime;




    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdecode() {
        return adecode;
    }

    public void setAdecode(String adecode) {
        this.adecode = adecode;
    }

    public Integer getHot() {
        return hot;
    }

    public void setHot(Integer hot) {
        this.hot = hot;
    }


    public String getOpenTime() {
        return openTime;
    }

    public void setOpenTime(String openTime) {
        this.openTime = openTime;
    }

    public EnableStatusEnums getEnable() {
        return enable;
    }

    public void setEnable(EnableStatusEnums enable) {
        this.enable = enable;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


}
